<template>
  <div class="app">
    <van-nav-bar
      title="青青花店"
      left-text="返回"
      left-arrow
      @click-left="onClickLeft"
    />
    <router-view></router-view>
    <van-tabbar v-model="active">
      <van-tabbar-item icon="home-o" to="/Home">首页</van-tabbar-item>
      <van-tabbar-item icon="search" to="/Search">搜索</van-tabbar-item>
      <van-tabbar-item icon="cart-o" to="/Cart">购物车</van-tabbar-item>
      <van-tabbar-item icon="setting-o" to="/Setting">设置</van-tabbar-item>
    </van-tabbar>
  </div>
</template>
<script>
export default {
  data: () => ({
   active:0
  }),
  methods: {
    onClickLeft() {
      console.log("返回上一页");
    },
  },
};
</script>
<style>
</style>

